Switching media streams in a client system based on environmental changes

ABSTRACT

A method and system for switching media streams of a video in a client system. A first media stream of the video is played in a SHOW mode in the client system as the first media stream is received from a content providing system. During playing the first media stream, an environmental change is detected within or adjacent to the client system and in response, a switch is made from playing the first media stream to playing a second media stream of the video in the SHOW mode as the second media stream is being received from the content providing system. After playing first media stream is paused, the switching may occur upon matching timecodes distributed in the first and second media streams, by transitioning playing the second media stream in a HIDE mode to playing the second media stream in the SHOW mode.

This application is a continuation application claiming priority to Ser.No. 13/529,130, filed Jun. 21, 2012, which is a continuation applicationto Ser. No. 12/846,867, filed Jul. 30, 2010, U.S. Pat. No. 8,234,396,issued Jul. 31, 2012, which is a continuation of Ser. No. 12/046,486,filed Mar. 12, 2008, U.S. Pat. No. 7,774,488, issued Aug. 10, 2010.

FIELD OF THE INVENTION

The present invention discloses a method and system for switching videostreams of a video in a client system.

BACKGROUND OF THE INVENTION

In current practice, as content providers seek to provide morehigh-quality video to users over the Internet, the content providersquickly find that high bandwidth live streams distributed to manysimultaneous users can lead to very high bandwidth cost. There are anumber of different solutions to limit the bandwidth usage of multiplehigh-quality streams that are currently in use. However, each of thesesolutions has drawbacks. One popular method is to provide a “waitingroom” where users basically have to wait their turn to see the video. Adrawback to this method is that it limits the number of users who cansee the video at once and reduces the overall user experience. Anothermethod is to ask the users if they are still watching the video after aset timeout period and disconnect the users who do not respond. Thisagain degrades the user experience by popping up messages to the user.

There is a need for a method and system that overcomes or mitigates theaforementioned shortcomings of current practice of providing video tousers.

SUMMARY OF THE INVENTION

The present invention provides a method for switching media streams of avideo in a client system, said media streams being made available to theclient system by a content providing system, said method comprising:

receiving a first media stream of the video from the content providingsystem;

playing the first media stream in a SHOW mode in the client system asthe first media stream is being received;

during said playing the first media stream, detecting an environmentalchange in an environment within or adjacent to the client system, saidenvironmental change configured to activate executing a procedure fordeciding whether to make a switch from playing the first media stream toplaying a second media stream of the video, said second media streamdiffering from the first media stream with respect to a differentiatingcharacteristic selected from the group consisting of a content modality,a color scheme, and a media stream bandwidth;

responsive to said detecting the environmental change, executing theprocedure;

deciding from said executing the procedure to make the switch; and

after said deciding, switching from playing the first media stream toplaying the second media stream in the SHOW mode as the second mediastream is being received from the content providing system in responsehaving been requested from the content providing system, said switchingpreserving video content continuity of the video,

wherein said receiving the first media stream, said playing the firstmedia stream, said detecting the environmental change, said executingthe procedure, said deciding, and said switching are performed by amedia application in the client system.

The present invention provides a process for supporting computerinfrastructure, said process comprising providing at least one supportservice for at least one of creating, integrating, hosting, maintaining,and deploying computer-readable code in a computing system, wherein thecode in combination with the computing system is configured to perform amethod for switching media streams of a video in a client systemcomprised by the computing system, said media streams being madeavailable to the client system by a content providing system, saidmethod comprising:

receiving a first media stream of the video from the content providingsystem;

playing the first media stream in a SHOW mode in the client system asthe first media stream is being received;

during said playing the first media stream, detecting an environmentalchange in an environment within or adjacent to the client system, saidenvironmental change configured to activate executing a procedure fordeciding whether to make a switch from playing the first media stream toplaying a second media stream of the video, said second media streamdiffering from the first media stream with respect to a differentiatingcharacteristic selected from the group consisting of a content modality,a color scheme, and a media stream bandwidth;

responsive to said detecting the environmental change, executing theprocedure;

deciding from said executing the procedure to make the switch; and

after said deciding, switching from playing the first media stream toplaying the second media stream in the SHOW mode as the second mediastream is being received from the content providing system in responsehaving been requested from the content providing system, said switchingpreserving video content continuity of the video,

wherein said receiving the first media stream, said playing the firstmedia stream, said detecting the environmental change, said executingthe procedure, said deciding, and said switching are performed by amedia application in the client system.

The present invention provides a computer program product, comprising acomputer usable storage medium having a computer readable program codestored therein, said computer readable program code containinginstructions that when executed by a processor of a computer systemimplement a method for switching media streams of a video in a clientsystem comprised by the computer system, said media streams being madeavailable to the client system by a content providing system, saidmethod comprising:

receiving a first media stream of the video from the content providingsystem;

playing the first media stream in a SHOW mode in the client system asthe first media stream is being received;

during said playing the first media stream, detecting an environmentalchange in an environment within or adjacent to the client system, saidenvironmental change configured to activate executing a procedure fordeciding whether to make a switch from playing the first media stream toplaying a second media stream of the video, said second media streamdiffering from the first media stream with respect to a differentiatingcharacteristic selected from the group consisting of a content modality,a color scheme, and a media stream bandwidth;

responsive to said detecting the environmental change, executing theprocedure;

deciding from said executing the procedure to make the switch; and

after said deciding, switching from playing the first media stream toplaying the second media stream in the SHOW mode as the second mediastream is being received from the content providing system in responsehaving been requested from the content providing system, said switchingpreserving video content continuity of the video,

wherein said receiving the first media stream, said playing the firstmedia stream, said detecting the environmental change, said executingthe procedure, said deciding, and said switching are performed by amedia application in the client system.

The present invention provides a computer system comprising a processorand a computer readable memory unit coupled to the processor, saidmemory unit containing instructions that when executed by the processorimplement a method for switching media streams of a video in a clientsystem comprised by the computing system, said media streams being madeavailable to the client system by a content providing system, saidmethod comprising:

receiving a first media stream of the video from the content providingsystem;

playing the first media stream in a SHOW mode in the client system asthe first media stream is being received;

during said playing the first media stream, detecting an environmentalchange in an environment within or adjacent to the client system, saidenvironmental change configured to activate executing a procedure fordeciding whether to make a switch from playing the first media stream toplaying a second media stream of the video, said second media streamdiffering from the first media stream with respect to a differentiatingcharacteristic selected from the group consisting of a content modality,a color scheme, and a media stream bandwidth;

responsive to said detecting the environmental change, executing theprocedure;

deciding from said executing the procedure to make the switch; and

after said deciding, switching from playing the first media stream toplaying the second media stream in the SHOW mode as the second mediastream is being received from the content providing system in responsehaving been requested from the content providing system, said switchingpreserving video content continuity of the video,

wherein said receiving the first media stream, said playing the firstmedia stream, said detecting the environmental change, said executingthe procedure, said deciding, and said switching are performed by amedia application in the client system.

The present invention provides a method and system that overcomes ormitigates shortcomings of current practice of providing video to users.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 depicts a client system receiving video from a content providersystem via a communication network, in accordance with embodiments ofthe present invention.

FIGS. 2 and 3 depict media stream switching scenarios, in accordancewith embodiments of the present invention.

FIG. 4 is a flow chart depicting a method for switching media streams ofa video in a client system, in accordance with embodiments of thepresent invention.

FIG. 5 is a flow chart depicting a procedure for a step in FIG. 4 ofdeciding whether to make a media stream switch, in accordance withembodiments of the present invention.

FIG. 6 is a flow chart depicting a first exemplary procedure for a stepin FIG. 4 of making a media stream switch, in accordance withembodiments of the present invention.

FIG. 7 is a flow chart depicting a second exemplary procedure for a stepin FIG. 4 of making a media stream switch, in accordance withembodiments of the present invention.

FIG. 8 illustrates a computer system used for switching media streams ofa video in a client system, in accordance with embodiments of thepresent invention.

DETAILED DESCRIPTION OF THE INVENTION

A “video” includes a time-ordered sequence of images which may appear inframes. A video may also comprise audio content synchronized with itsincluded images. Thus a video comprises image content alone or bothimage content and audio content. A “media stream” associated with avideo is a signal being streamed along a transmission path, wherein thesignal comprises content from the video in accordance with a contentmodality. For a video having both image content and audio content, itsassociated media stream may be in one of several content modalities: animage-audio modality if the media stream comprises both the imagecontent and audio content of the video; an image-audio modality if themedia stream comprises the image content but not the audio content ofthe video; or audio-only modality if the media stream comprises theaudio content but not the image content of the video. For a video havingimage content but no audio content, its associated media stream must bein an image-only modality.

A “video source” generates or otherwise provides a video. A media streamassociated with a video may originate from a video source and beultimately delivered to a user system which presents the content of themedia stream to a user, enabling the user to experience the videovisually and/or audibly depending on the content modality (i.e.,image-audio modality, image-only modality, or audio-only modality) ofthe associated media stream.

A media stream is characterized by a “bandwidth” denoting a maximum rateat which the data in the media stream can be transmitted (e.g., in unitsof bits per second or bytes per second) over its transmission path.

FIG. 1 depicts a client system 20 receiving video from a contentprovider system 10 via a communication network 28, in accordance withembodiments of the present invention. In one embodiment, thecommunication network 28 is the Internet.

The content provider system 10 comprises a video source 11, an encoder12, an encoder 13, a streaming media server 14, and a firewall 15. Theencoders 12 and 13 each encode the content of the media stream bytechniques known in the art that include, inter alia, image compressionand audio compression. Although the content provider system 20 depictsonly encoders 12 and 13, the content provider system 20 generallycomprise a plurality of encoders which encode media streams havingdifferentiating characteristics which differentiate media streams fromeach other. For example, the encoder 12 and encoder 13 may each encodemedia streams of different content modality (i.e., the image-audiomodality, the image-only modality, and the audio-only modality).

Video is provided by the video source 11 and an associated video streamis passed into an encoder (e.g., encoder 12 or encoder 13) and passesout of the encoder, into the streaming media server 14, through thefirewall 15 and into the client system 20 via the communication network28. This resultant video stream 18 is received by the client system 20.Although the content provider system 10 is depicted in FIG. 1 with thestreaming media server 14 therein for providing streaming image content,or streaming image and audio content, to the client system 20, in oneembodiment the streaming media server 14 is not present in contentprovider system 10. Although the content provider system 10 is depictedin FIG. 1 with the firewall 15 therein for protecting against illegalunauthorized access and/or interception of the video stream provided bythe video source 11, in one embodiment the firewall 15 is not present inthe content provider system 10.

The client system 20 comprises a media application 21, a display 24, aprocessor 23 (e.g., a central processing unit (CPU)), a memory 22, anoperating system 25, a microphone 36, and a photosensor 37. Theprocessor 23 is coupled to the media application 21, the display 24, theprocessor 23, and the memory 22. The media application 21 processes themedia stream 18 and displays the media stream 18 to a user of the clientmachine 20 on the display 24. The client system 20 may be a computersystem in a form of a data processing system, a television system, etc.The client system 20 is configured to have a user 29 view and/or hearthe video and/or audio of the media stream 18.

A process of switching media streams begins with the media application21 loading a configuration file in the memory 22. The configuration filedesignates a specific default media stream to be initially played in aSHOW mode on the display 24. The configuration file also designatesvideo stream to switch to based on a detected environmental change in anenvironment within or adjacent to the client system. A SHOW mode isdefined as a mode in which all visual and audio attributes of the mediastream being played are presented to the user 29 at the client system20. Then the media application 21 checks for the environmental changewhich may trigger the client system 20 to switch to a new media stream.Switching media streams of a video in accordance with embodiments of thepresent invention enables video to be provided to the user system 20 inan efficient manner that is convenient for a user of the client system20.

Once the media application 21 detects the environmental change anddecides to switch video streams based on the environmental change, themedia application 21 initiates a loading of the new video stream in aHIDE mode. A HIDE mode is defined as a mode in which the video streamthat is being played in the client system 20 is muted and visuallyunavailable to the user 29 at the client system 20.

The new media stream to be switched from the default video stream may bepredesignated as a function of the environmental change and identifiedin the configuration file or elsewhere in the memory 22. Timecodesdistributed in each media stream identify relative time along thetimeline of each media stream. Thus, timecodes with equal values in bothmedia streams identify the same relative time in the timeline of themedia stream being played, or equivalently the same frame in the framescomprises by the video.

After the new stream has begun playing in the HIDE mode, the mediaapplication 21 begins to check the timecodes distributed in both mediastreams until the media application 21 finds a timecodes in the newmedia stream being played in the HIDE mode that matches (within aspecified tolerance) a timecode of the current media stream (e.g.,default media stream) being played in the SHOW mode. Once this matchingtimecode is found, the media application 21 stops the current mediastream and switches the new media stream into the SHOW mode, whichunmutes and makes the new media stream visible and audible to the user29.

If the media application 21 is not able to locate a matching timecode(within a specified tolerance) and within a specified time period, themedia application 21 may pause the current media stream until the mediaapplication 21 finds a new stream timecode matching the paused streamtimecode. The media application 21 may then continue by switching to thenew media stream from the HIDE mode to the SHOW mode. In thisembodiment, the user 29 would experience a pause in the video steambeing played in the SHOW mode, similar to a buffering event. However,the user 29 would not experience any loss of content continuity in thevideo.

FIGS. 2 and 3 depict media stream switching scenarios, in accordancewith embodiments of the present invention.

In FIG. 2, media stream 1 is playing in the SHOW mode and the mediaapplication 21 receives a command to switch media streams at a 5 minutetimecode mark within the streams. The media application 21 then startsplaying media stream 2 in the HIDE mode. Once media stream 2 hasfinished buffering and started playing, the media application 21 beginsto check the timecodes in media streams 1 and 2. The media application21 finds matching timecodes at 5 minutes 10 seconds at which time mediaapplication 21 makes media stream 2 visible and unmuted by switchingmedia stream 2 into the SHOW mode and also stops the playing of mediastream 1.

In FIG. 3, the timecodes for media stream 2 are behind the timecodes formedia stream 1, which means that media stream 2 is lagging the mediastream 1 with respect to their respective content. In this situation,the media application 21 pauses media stream 1 until stream 2 catches upand matching timecodes are found at 5 minutes 30 seconds.

FIG. 4 is a flow chart depicting a method for switching media streams ofa video in the client system 20, in accordance with embodiments of thepresent invention. The media streams are made available to the clientsystem 20 by the content providing system 10. The method of FIG. 4 isperformed by the media application 21 of the client system 20 in steps41-48.

Step 41 launches the media application 21 in the client system 20.

Step 42 loads into the memory 22 a configuration file that designates aspecific media stream to be initially played in the client system 20 asa default media stream, which is denoted as a first media stream.

Step 43 receives the first media stream from the content providingsystem 10.

Step 44 plays the first media stream in the SHOW mode via the display24.

Step 45 checks for an environmental change that triggers execution of aprocedure that decides whether to make a switch from playing the firstvideo stream to playing a second video stream of the video, wherein thesecond video stream differs from the first video stream with respect toa differentiating characteristic. The environmental change may be, interalia, a screen saver of the client system 20 in use, a change in a soundlevel adjacent to the client system 20 that exceeds a pre-specifiedchange in sound level, a change in lighting level adjacent to the clientsystem 20 that exceeds a pre-specified change in lighting level, and ahardware overload in the client system 20. The differentiatingcharacteristic may be, inter alia, a content modality (defined supra), acolor scheme, or a media stream bandwidth. A color scheme is a colorshading designation, such as inter alia: shades of a single color,shades of a plurality of colors, black-and-white, shades of gray, etc.of the images in the media stream.

Step 46 determines whether the environmental change has been detected.If step 46 determines that the environmental change has not beendetected, then the method loops back to step 45 to continue checking foran environmental change; otherwise the environmental change has beendetected and step 47 is next performed.

Step 47 performs execution of a procedure for deciding whether to makethe switch from playing the first media stream to playing the secondmedia stream. The execution of step 47 is described in more detail inFIG. 5, discussed infra. If the procedure performed by step 47 decidesnot to make the switch, then the method loops back to step 45 to checkfor another environmental change; otherwise step 48 is next performed.

Step 48 switches from playing the first media stream in the SHOW mode toplaying the second media stream in the SHOW mode as the second mediastream is being received from the content providing system 10, inresponse to the second media stream having been requested from thecontent providing system 10 by the client system 20. The switchingpreserves content continuity, which means that there is essentially noomission of content of the video displayed in the SHOW mode as a resultof the switching. In one embodiment, the switching is performedseamlessly in time in a manner that preserves time continuity ofpresenting the video to the user 29 in the SHOW mode, as in the exampleof FIG. 2 described supra. In one embodiment, the switching is performedwith a pause in time in the playing of the video in the SHOW mode, as inthe example of FIG. 3 described supra. The execution of step 48 isdescribed infra in more detail in FIGS. 6 and 7 in accordance with theexamples of FIGS. 2 and 3 respectively.

After step 48 is executed, the method loops back to step 45 to check foranother environmental change which may result in switching to a next newmedia stream, wherein the prior second media stream is now designated asthe first media stream with respect to subsequent execution of steps45-48, and the next new media stream to be switched to is designated asthe second media stream with respect to subsequent execution of steps45-48.

FIG. 5 is a flow chart depicting a procedure for step 47 in FIG. 4 ofdeciding whether to make the switch from playing the first media streamto playing the second media stream, in accordance with embodiments ofthe present invention. The flow chart of FIG. 5 comprises steps 51-53.

Step 51 determines whether the detected environmental change satisfies apre-specified condition for switching media streams.

If step 51 determines that the detected environmental change satisfiesthe pre-specified condition, then step 53 is next executed and decidesto switch streams; otherwise step 52 is next executed and decides to notswitch streams.

In one embodiment, the detected environmental change is a screen saverof the client in use in the client system 20. The pre-specifiedcondition is that he screen saver has been in use for at least apre-specified period of time. The differentiating characteristic is thecontent modality such that the first media stream comprises animage-audio modality and the second media stream comprises an audio-onlymodality. This embodiment assumes that when a screen saver is in use,the user 29 does not have a need to experience image content of thevideo stream.

In one embodiment, the detected environmental change is a change in asound level adjacent to the client system 20 that exceeds apre-specified change in sound level, as detected by the microphone 36 ofthe client system 20. The pre-specified condition is that a currentsound level associated with the detected change in the sound levelexceeds a pre-specified sound level for at least a pre-specified periodof time. The differentiating characteristic is the content modality suchthat the first media stream comprises an image-audio modality and thefirst media stream comprises an image-only modality. This embodimentassumes that when the sound level is sufficiently high in relation to acomfort level of human sound reception, the user 29 does not have a needto experience audio content of the video stream.

In one embodiment, the detected environmental change is a change inlighting level adjacent to the client system 20 that exceeds apre-specified change in lighting level, as detected by the photosensor37 of the client system 20. The pre-specified condition is that acurrent lighting level associated with the detected change in thelighting level exceeds a pre-specified lighting level for at least apre-specified period time. The differentiating characteristic is thecolor scheme such that the first media stream comprises a first colorscheme and the second media stream comprises a second color scheme thatdiffers from the first color scheme. The second color scheme enables thesecond media stream to be viewed with better visual clarity at thecurrent lighting level than the visual clarity of the first media streamcomprising the first color scheme. This embodiment attempts to tailorthe color scheme to the detected lighting level in order to optimize orimprove visual clarity of the media stream.

In one embodiment, the detected environmental change is a hardwareoverload in the client system 20 (e.g., a hardware malfunction thatimpact storage and/or processing of the first media stream, a currentheavy use of data storage by user(s) in the that limits data storage forthe first media stream, etc.) that may requires a change in media streambandwidth in order to more efficiently process the video data. Thepre-specified condition is that the hardware overload is matched to ahardware overload condition in a pre-specified list of hardware overloadconditions that may be stored in the client system 20 (e.g., the memory22). The differentiating characteristic is the media stream bandwidthwhich will differ in the second media stream from the media streambandwidth in the first media stream so as to improve the efficiency ofprocessing the video data by the client system 20 in relation to thehardware overload (i.e., the specific nature of the hardware overload istaken into account in selecting the media stream bandwidth that thesecond media stream should comprise).

The pre-specified conditions and associated second media streams may bestored in the client system 20 (e.g., in the memory 22). The storedsecond media stream(s) for each pre-specified condition may be a singlesecond media stream or a group or class of media streams from which aspecific second media stream may be selected by the user system 20. Thegroup or class of media streams comprises a plurality of media streams.Thus in one embodiment, the user system 20 selects the second mediastream from the group or class of media streams, either randomly or inaccordance with a criteria that selects a best (or not the worst) secondmedia stream from the group or class of media streams, in relation tothe triggering environmental change.

FIG. 6 is a flow chart depicting a first exemplary procedure for step 48in FIG. 4 of switching from playing the first media stream to playingthe second media stream, in accordance with embodiments of the presentinvention. The flow chart of FIG. 6 is in accordance with the exampledepicted in FIG. 2 and comprises steps 61-65.

In step 61, the media application 21 requests a second media stream fromthe content providing system 10.

In step 62, the client system 20 receives the requested second mediastream such that the first and second media streams are being receivedconcurrently with respect to their respective content.

In step 63, the media application 21 plays the second media stream inthe HIDE mode while the second media stream is being received and whilethe first media stream continues to be played in the SHOW mode.

In step 64, at a subsequent real time corresponding to a matchingtimecode (within a specified tolerance) in the first and second mediastream, a transition is implemented from playing the second media streamin the HIDE mode to playing the second media stream in the SHOW mode.

In step 65, playing the first media stream is stopped, aboutsimultaneous with performance of step 64 of initiating playing thesecond media stream in the SHOW mode.

FIG. 7 is a flow chart depicting a second exemplary procedure for step48 in FIG. 4 of switching from playing the first media stream to playingthe second media stream, in accordance with embodiments of the presentinvention. The flow chart of FIG. 7 is in accordance with the exampledepicted in FIG. 3 and comprises steps 71-75.

In step 71, the media application 21 requests a second media stream fromthe content providing system 10.

In step 72, the client system 20 receives the requested second mediastream such that the second media stream is lagging the first mediastream with respect to their respective content.

In step 73, the media application 21 plays the second media stream inthe HIDE mode while the second media stream is being received.

In step 74, playing the first media stream is paused before or duringplaying the second media stream in the HIDE mode in step 73. The time atwhich pausing is initiated may take into account a relativedesirability, or lack thereof, for pausing the first media stream atdifferent timecodes in the video. For example, if the video is of afootball game and the first media stream is displaying an attempted afield goal, it would be relatively undesirable to pause the media streamwhen the foot of the field goal kicker makes contact with the footballand it would be far more desirable to pause the first media stream aboutfive seconds later after the outcome of the attempted field goal hasbeen determined and communicated.

Thus in one embodiment, a pausing rank is associated with each timecodein the first and second media streams. The pausing rank denotes arelative rank to pause playing the first media stream, wherein themethod comprises constraining the pausing to occur at a timecode in thefirst media stream at which the associated pausing rank is not less thana predesignated pausing rank threshold. For example given apredesignated pausing rank threshold of 5, if successive timecodes T1,T2, T3, T4, and T5 in the first media stream have pausing ranks of 8, 3,5, 6, and 2, respectively, and if the second media stream can belogically paused at any timecode after T1, then the second media streamswould be paused at the timecode T3 because T2=3 is less than the pausingrank threshold of 5 and T3=5 is not less than the pausing rank thresholdof 5.

The pausing rank associated with each timecode may be recorded as datastored in the memory 22 and/or be embedded with the media streams.

In step 75, after having paused the first media stream in step 74 and ata real time corresponding to a matching timecode (within a specifiedtolerance) in the first and second media stream, a transition isimplemented from playing the second media stream in the HIDE mode toplaying the second media stream in the SHOW mode. The paused first mediastream is stopped from being paused and from being played at about thisreal time.

FIG. 8 illustrates a computer system 90 used for switching media streamsof a video in a client system, in accordance with embodiments of thepresent invention. The computer system 90 may comprise the client system20 of FIG. 1. The computer system 90 comprises a processor 91, an inputdevice 92 coupled to the processor 91, an output device 93 coupled tothe processor 91, and memory devices 94 and 95 each coupled to theprocessor 91. The input device 92 may be, inter alia, a keyboard, amouse, etc. The output device 93 may comprise the display 24 of FIG. 1and additionally include, inter alia, a printer, a plotter, a computerscreen, a magnetic tape, a removable hard disk, a floppy disk, etc. Thememory devices 94 and 95 may be, inter alia, a hard disk, a floppy disk,a magnetic tape, an optical storage such as a compact disc (CD) or adigital video disc (DVD), a dynamic random access memory (DRAM), aread-only memory (ROM), etc. Either or both of the memory devices 94 and95 may comprise the memory 22 of FIG. 1. The memory device 95 includes acomputer code 97 which is a computer program that comprisescomputer-executable instructions. The computer code 97 may comprise themedia application 21 of FIG. 1 and includes an algorithm for switchingmedia streams of a video in the client system. The processor 91 executesthe computer code 97 and may represent the processor 23 of FIG. 1. Thememory device 94 includes input data 96. The input data 96 includesinput required by the computer code 97. The output device 93 displaysoutput from the computer code 97. Either or both memory devices 94 and95 (or one or more additional memory devices not shown in FIG. 8) may beused as a computer readable storage medium having a computer readableprogram store therein and/or having other data stored therein, whereinthe computer readable program comprises the computer code 97. Generally,a computer program product (or, alternatively, an article ofmanufacture) of the computer system 90 may comprise said computerreadable storage medium.

Thus the present invention discloses a process for supporting computerinfrastructure, integrating, hosting, maintaining, and deployingcomputer-readable code into the computer system 90, wherein the code incombination with the computer system 90 is capable of performing amethod for switching media streams of a video in a client system.

Any of the components of the present invention could be created,integrated, hosted, maintained, deployed, managed, serviced, supported,etc. by a service provider who offers to facilitate switching mediastreams of a video in a client system. Thus the present inventiondiscloses a process for deploying or integrating computinginfrastructure, comprising integrating computer-readable code into thecomputer system 90, wherein the code in combination with the computersystem 90 is capable of performing a method for switching media streamsof a video in a client system.

In another embodiment, the invention provides a business method thatperforms the process steps of the invention on a subscription,advertising, and/or fee basis. That is, a service provider, such as aSolution Integrator, could offer to facilitate switching media streamsof a video in a client system. In this case, the service provider cancreate, integrate, host, maintain, deploy, manage, service, support,etc., a computer infrastructure that performs the process steps of theinvention for one or more customers. In return, the service provider canreceive payment from the customer(s) under a subscription and/or feeagreement and/or the service provider can receive payment from the saleof advertising content to one or more third parties.

While FIG. 8 shows the computer system 90 as a particular configurationof hardware and software, any configuration of hardware and software, aswould be known to a person of ordinary skill in the art, may be utilizedfor the purposes stated supra in conjunction with the particularcomputer system 90 of FIG. 8. For example, the memory devices 94 and 95may be portions of a single memory device rather than separate memorydevices.

While particular embodiments of the present invention have beendescribed herein for purposes of illustration, many modifications andchanges will become apparent to those skilled in the art. Accordingly,the appended claims are intended to encompass all such modifications andchanges as fall within the true spirit and scope of this invention.

What is claimed is:
 1. A method for switching media streams of a videoin a client system, said method comprising: playing, by a processor ofthe client system, a first media stream of the video in a SHOW mode inthe client system as the first media stream is being received from acontent providing system; during said playing the first media stream,said processor detecting an environmental change in an environmentwithin or adjacent to the client system; and responsive to saiddetecting the environmental change, said processor switching fromplaying the first media stream to playing a second media stream of thevideo in the SHOW mode as the second media stream is being received fromthe content providing system, said switching preserving video contentcontinuity of the video, said second media stream differing from thefirst media stream with respect to a differentiating characteristic. 2.The method of claim 1, wherein timecodes identifying relative timewithin the video are distributed in the first media stream and thesecond media stream, and wherein said switching comprises: pausing saidplaying the first media stream; and after said pausing and at a realtime corresponding to having determined a matching timecode of saidtimecodes within a specified tolerance, in the first and second mediastream, transitioning from playing the second media stream in a HIDEmode to playing the second media stream in the SHOW mode and stoppingthe first media stream from being paused and being played.
 3. The methodof claim 2, wherein said switching comprises: before said transitioning,playing the second media stream in the HIDE mode in the client systemwhile the second media stream is being received from the contentproviding system, wherein the second media stream is lagging the firstmedia stream with respect to their respective content.
 4. The method ofclaim 3, wherein said pausing occurs before or during said playing thesecond media stream in the HIDE mode.
 5. The method of claim 2, whereina pausing rank is associated with each timecode in the first and secondmedia streams and denotes a relative rank to pausing said playing thefirst media stream, wherein the method comprises constraining saidpausing to occur at a timecode in the first media stream at which theassociated pausing rank is not less than a predesignated pausing rankthreshold.
 6. The method of claim 1, wherein the environmental change isselected from the group consisting of a change in a screen saver of theclient system in use, a change in a sound level adjacent to the clientsystem that exceeds a pre-specified change in sound level, a change inlighting level adjacent to the client system that exceeds apre-specified change in lighting level, and a hardware overload in theclient system.
 7. The method of claim 1, wherein the differentiatingcharacteristic is selected from the group consisting of a contentmodality, a color scheme, and a media stream bandwidth.
 8. A computerprogram product, comprising a computer readable hardware storage devicehaving a computer readable program code stored therein, said programcode containing instructions which, upon being executed by a processorof a computer system, implement a method for switching media streams ofa video in a client system, said method comprising said processorplaying a first media stream of the video in a SHOW mode in the clientsystem as the first media stream is being received from a contentproviding system; during said playing the first media stream, saidprocessor detecting an environmental change in an environment within oradjacent to the client system; and responsive to said detecting theenvironmental change, said processor switching from playing the firstmedia stream to playing the second media stream of the video in the SHOWmode as the second media stream is being received from the contentproviding system, said switching preserving video content continuity ofthe video, said second media stream differing from the first mediastream with respect to a differentiating characteristic.
 9. The computerprogram product of claim 8, wherein timecodes identifying relative timewithin the video are distributed in the first media stream and thesecond media stream, and wherein said switching comprises: pausing saidplaying the first media stream; and after said pausing and at a realtime corresponding to having determined a matching timecode of saidtimecodes within a specified tolerance, in the first and second mediastream, transitioning from playing the second media stream in a HIDEmode to playing the second media stream in the SHOW mode and stoppingthe first media stream from being paused and being played.
 10. Thecomputer program product of claim 9, wherein said switching comprises:before said transitioning, playing the second media stream in the HIDEmode in the client system while the second media stream is beingreceived from the content providing system, wherein the second mediastream is lagging the first media stream with respect to theirrespective content.
 11. The computer program product of claim 10,wherein said pausing occurs before or during said playing the secondmedia stream in the HIDE mode.
 12. The computer program product of claim9, wherein a pausing rank is associated with each timecode in the firstand second media streams and denotes a relative rank to pausing saidplaying the first media stream, wherein the method comprisesconstraining said pausing to occur at a timecode in the first mediastream at which the associated pausing rank is not less than apredesignated pausing rank threshold.
 13. The computer program productof claim 8, wherein the environmental change is selected from the groupconsisting of a change in a screen saver of the client system in use, achange in a sound level adjacent to the client system that exceeds apre-specified change in sound level, a change in lighting level adjacentto the client system that exceeds a pre-specified change in lightinglevel, and a hardware overload in the client system.
 14. The computerprogram product of claim 8, wherein the differentiating characteristicis selected from the group consisting of a content modality, a colorscheme, and a media stream bandwidth.
 15. A method for switching mediastreams of a video in a client system, said method comprising: playing,by a processor of the client system, a first media stream in a SHOW modein the client system as the first media stream is being received from acontent providing system; during said playing the first media stream,said processor switching from playing the first media stream to playinga second media stream in the SHOW mode as the second media stream isbeing received from the content providing system, said switchingpreserving video content continuity of the video, said second mediastream differing from the first media stream with respect to adifferentiating characteristic, wherein timecodes identifying relativetime within the video are distributed in the first media stream and thesecond media stream, and wherein said switching comprises: pausing saidplaying the first media stream; and after said pausing and at a realtime corresponding to having determined a matching timecode of saidtimecodes within a specified tolerance, in the first and second mediastream, transitioning from playing the second media stream in a HIDEmode to playing the second media stream in the SHOW mode and stoppingthe first media stream from being paused and being played.
 16. Themethod of claim 15, wherein said switching comprises: before saidtransitioning, playing the second media stream in the HIDE mode in theclient system while the second media stream is being received from thecontent providing system, wherein the second media stream is lagging thefirst media stream with respect to their respective content, whereinsaid pausing occurs before or during said playing the second mediastream in the HIDE mode.
 17. The method of claim 15, wherein a pausingrank is associated with each timecode in the first and second mediastreams and denotes a relative rank to pausing said playing the firstmedia stream, wherein the method comprises constraining said pausing tooccur at a timecode in the first media stream at which the associatedpausing rank is not less than a predesignated pausing rank threshold.18. The method of claim 15, said method further comprising: during saidplaying the first media stream and prior to said switching, saidprocessor detecting an environmental change in an environment within oradjacent to the client system, wherein said switching is performed inresponse to said detecting the environmental change.
 19. The method ofclaim 18, wherein the environmental change is selected from the groupconsisting of a change in a screen saver of the client system in use, achange in a sound level adjacent to the client system that exceeds apre-specified change in sound level, a change in lighting level adjacentto the client system that exceeds a pre-specified change in lightinglevel, and a hardware overload in the client system.
 20. The method ofclaim 15, wherein the differentiating characteristic is selected fromthe group consisting of a content modality, a color scheme, and a mediastream bandwidth.